package com.jz.community.modulemine.message.net;

import com.jz.community.basecomm.bean.BaseResponseInfo;
import com.jz.community.basecomm.constant.Constant;
import com.jz.community.modulemine.message.bean.MessageListBean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.PUT;
import retrofit2.http.Query;

public interface MessageNetApi {

    @GET(Constant.MESSAGE_LIST_DATA)
    Observable<MessageListBean> initMessageData(@Query("page") int page, @Query("size") int size, @Query("type") String type);

    @PUT(Constant.READ_MESSAGE)
    Observable<Boolean> readMessage(@Query("infoid") String id);
}
